 {include file="public/header" /}
 <style>
.profile-content h5,.profile-content h4{
    line-height: 22px;
}
.tbutton{ display: none; }
 </style>
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-4">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>评论内容</h5>
                </div>
                <div>
                    <div class="ibox-content profile-content">
                    <h5>动态ID： {present name="article"}{$article.dy_id} {/present}</h5>
                    <h5>动态内容： {present name="article"}{$article.content} {/present}</h5>
                    <h4>
                        <?php $user=_user($name['userid']);?>
                        <!-- <a  class="pull-left">
                            <img alt="head" style="width:40px;height:40px;" class="img-circle" src="__ROOT__<?php if(strpos($user['head_100'],'/') != 0){echo '/';} ?>{$user.head_100}">
                            
                        </a> -->
                            用户评论内容：{$name.content}</h4>
                       
                         
                        
                        <div class="user-button">
                            <div class="row">
                                 
                                <div class="col-sm-12 ">
                                    <button onclick="del({$name.comment_id})" type="button" class="btn btn-default btn-sm btn-block">
                                        <i class="fa fa-coffee"></i> 删除
                                    </button>
                                </div>
                                
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-8">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{if condition="$prev"}上一级评论{else /}下一级评论{/if}</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="profile.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                         
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div>
                        <div class="feed-activity-list">
                            {volist name="pingList" id="v"}
                            <div class="feed-element">
                                <?php $user=_user($v['userid']);?>
                                <a  class="pull-left">
                                    <img alt="head" class="img-circle" src="__ROOT__<?php if(strpos($user['head'],'/') != 0){echo '/';} ?>{$user.head}">
                                </a>
                                <div class="media-body ">
                                    <small class="pull-right">{$v.addtime}</small>
                                    <strong>{$user.name}</strong><br>
                                    <div class="well">
                                        {$v.content}
                                    </div>
                                    <div class="pull-right">
                                        <a class="btn btn-xs btn-danger" onclick="pingDel({$v.comment_id})">删除</a>
                                    </div>
                                </div>
                            </div>
                            {/volist}
                        </div>
                        <div class="row row-lg" style="margin-top: 20px;">
                            <div class="col-sm-12 pages">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
    
});
function pingDel(id){
    swal_del(id,"{:url('pingXaiDel')}")
}
function del(id){
    swal_del(id,"{:url('pingDel',['prev'=>$prev])}")
}
</script>
{include file="public/bottom" /}
